<!DOCTYPE html>
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width,height=device-height,inital-scale=1.0,maximum-scale=1.0,user-scalable=no">
<title>依医客服</title>
<meta name="baidu-site-verification" content="QIQ6KC1oZ6">
<script type="text/javascript">
</script>
<link rel="stylesheet" href="__CSS__/myresume.css">
<script type="text/javascript" src="__JS__/jquery.1.10.1.min.js"></script>
<script type="text/javascript" src="__JS__/jquery.validate.js"></script>
<script type="text/javascript" src="__JS__/weixin_preview.js"></script>
<link rel="stylesheet" href="__CSS__/jquery.mobile.min.css">
<link rel="stylesheet" href="__CSS__/stylesheet.css">
<script src="__JS__/jquery.mobile.min.js"></script>
</head>
<body>
<style>
section.wrapper {
width: 98%;
margin: 1%;
}
</style>
<script type="text/javascript">
document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
	WeixinJSBridge.call('hideOptionMenu');
});
</script>
	<nav class="nav nav-justified">
		<ul>
			<li <if condition="$type eq 0">class=" current " </if>><a href="{:U('zb?openid='.$openid.'&type=0')}">全部</a></li>
			<li <if condition="$type eq 1">class=" current " </if>><a href="{:U('zb?openid='.$openid.'&type=1')}"><div>通知招标</div></a></li>
			<li <if condition="$type eq 2">class=" current " </if>><a href="{:U('zb?openid='.$openid.'&type=2')}">不合适</a></li>
		</ul>
	</nav>
		<volist name="zb" id="vo_zb">
			  <div data-role="content">
			    <div data-role="collapsible">
			      <h1>{$vo_zb.devicename}</h1>
			      <ul id="co_list" class="co_list">
			      <volist name="vo_zb['bid']"  id="vo_zb_bid">
				<li>
			<a href="{:U('zb_process?openid='.$openid.'&tb_id='.$vo_zb_bid['bt_id'])}">
			<section class="wrapper box_wrapper co_wrapper">
				<div class="co_card">
					<div class="co_card_info">
						<img class="head_pic" src="{$vo_zb_bid.logopath|getlogo}" alt="{$vo_zb_bid.recname}">
						<div class="info_detail">
							<h3>{$vo_zb_bid.recname}</h3>
							<div style="float:right;">服务经验:{$vo_zb_bid.recexp|getrecexp}</div>
							<div>
								<div style="float:right;">注册资金:{$vo_zb_bid.recexp|getcapital}</div>
							</div>
						</div>
					</div>
				</div>
				<div class="co_footer">
					<div class="co_footer_content">
						<div class="date">{$vo_zb_bid.bidtime|substr=0,-3}</div>
						<div class="status"><if condition="$vo_zb_bid['status']  eq 1">投标完成<elseif condition="$vo_zb_bid['status']  eq 2" />已查看<elseif condition="$vo_zb_bid['status']  eq 3" />通知招标<else />不合适</if></div>
					</div>
				</div>
				<div class="shadow">
					<div class="left"></div>
					<div class="right"></div>
				</div>
			</section>
			</a>
		</li>
		</volist>
			</ul>
			    </div>
			  </div>
			  </volist>
		<div class="empty-bottom"></div>
	<script type="text/javascript">
		$(function(){
			$('.co_wrapper').bind('tap',function(){
				
			});
			
			var currentpage = 2;
			$('#addmore_btn').bind('click', function(event) {
				$(this).hide();
				var url = "http://www.lagou.com/weixinResume/resumeDealStatus.html?openid=o_7_wjsyjGLmdf88pHYaiV8X7zkw&type=0&dataType=json&pageNo="+currentpage;
				$.getJSON(url, function(data) {
					//console.log(data);
					if (data.success) {
						if (data.content.hasNextPage) {
							$("#addmore_btn").show();
							currentpage = data.content.currentPageNo+1;
						}
						
						var deliverId = "#"
						$.each(data.content.result, function(index, job) {
							if (index == 0) {
								deliverId = job.deliverId;
							}
							$('#co_list').append(newCard(job));
						});
						//window.location.href=deliverId;
						$("html,body").animate({scrollTop: $("#"+deliverId).offset().top}, 500);
					}
					else {
						$("#addmore_btn").show();
					}
					
				});
				return false;
			});//end #addmore_btn
			
			function newCard(job) {
				var html = "";
				html += '<li id="' + job.deliverId + '">';
				html += '<a href="http://www.lagou.com/weixinResume/process.html?openid=o_7_wjsyjGLmdf88pHYaiV8X7zkw&deliverId='+job.deliverId+'">';
				html += '<section class="wrapper box_wrapper co_wrapper">';
				html += '<div class="co_card">';
				html += '<div class="co_card_info">';
				html += '<img class="head_pic" src="http://www.lagou.com/' + job.companyLogo + '" alt="' + job.companyName + '">'
				html += '<div class="info_detail">';
				html += '<h3>' + job.companyName + '</h3>';
				html += '<div>';
				html += '<div class="position_name">' + job.positionName + '</div>';
				html += '<div class="salary"><i class="icon icon_rmb"></i>' + job.salary + '</div>';
				html += '</div>';
				html += '</div>';
				html += '</div>';
				html += '</div>';
				html += '<div class="co_footer">';
				html += '<div class="co_footer_content">';
				html += '<div class="date">' + job.operateTime + '</div>';
				html += '<div class="status">' + job.operateType + '</div>';
				html += '</div>';
				html += '</div>';
				html += '<div class="shadow">';
				html += '<div class="left"></div>';
				html += '<div class="right"></div>';
				html += '</div>';
				html += '</section>';
				html += '</a>';
				html += '</li>';
				return $(html);
			}
			
		});
	</script>
</body></html>